package com.joonggo.gip.service;

import java.util.HashMap;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.joonggo.gip.dao.GroupDao;
import com.joonggo.gip.vo.Group;

@Service
public class GroupServiceImpl implements GroupService{

	@Autowired
	GroupDao groupDao;
	
	@Override
	public int addGroup(Group group) throws Exception {

		return groupDao.insert(group);
	}

	@Override
	public int addGroupWaiting(HashMap<String, Object> waitingInfo)
			throws Exception {
		
		return groupDao.insertGroupWaiting(waitingInfo);
	}

}
